package com.awanp3.nimbus.remote.api.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 下载订单入参
 *
 * @author 20014170
 * @date 2025-09-04
 */
@Data
@NoArgsConstructor
public class PostOrderParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * PO单号
     */
    private String orderNo;

    /**
     * 公司编码
     */
    private String companyCode;

    /**
     * 过账明细
     */
    private List<PostOrderParamDetail> details;


    @Data
    static class PostOrderParamDetail  implements Serializable {
        @Serial
        private static final long serialVersionUID = 1L;

        /**
         * 行项目号
         */
        private String orderItem;

        /**
         * 工厂
         */
        private String plant;

        /**
         * 物料号
         */
        private String materialCode;

        /**
         * 数量
         */
        private Long qty;
    }
}
